<extend name="Public/base"/>
<block name="body">
    <div class="main-title">
        <h2>任务详情</h2>
    </div>
    <div  class="form-horizontal">
        <div class="form-item">
            <label class="item-label">任务名称：<span class="check-tips">{$detail.name|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">任务标题：<span class="check-tips">{$detail.title|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">任务描述：<span class="check-tips">{$detail.description|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">任务奖励：<span class="check-tips">{$detail.money|default='0.0'}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">任务类型：<span class="check-tips">{$detail.type_name|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">开始时间：<span class="check-tips">{:date('Y-m-d H:i:s', $detail['start_time'])}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">结束时间：
            	<span class="check-tips">
            		<if condition="$detail['end_time'] eq 0">
            			<span>永久有效</span>
            		<else />
            			<span>{:date('Y-m-d H:i:s', $detail['end_time'])}</span>
            		</if>
            	</span>
            </label>
        </div>
        <div class="form-item">
            <label class="item-label">创建时间：<span class="check-tips">{:date('Y-m-d H:i:s', $detail['create_time'])}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">更新时间：<span class="check-tips">{:date('Y-m-d H:i:s', $detail['update_time'])}</span></label>
        </div>
        <div class="form-item">
            <div class="item-label">类型状态：<span class="check-tips">{$detail.status_text}</span></div>
        </div>
        <div class="form-item">
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </div>
</block>

<block name="script">
	<style type="text/css">
		.controls{
			margin-left:20px;
		}
	</style>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Task/taskList')}');
    </script>
</block>
